<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    body {
        height: 300px;
        border: 1px solid #000;
    }

    .box {
        width: 100px;
        height: 100px;
        background: red;
        margin: 10px;
        transition: 2s;
        transform-origin: left top;
    }

    body:hover .box:nth-of-type(1) {
        transform: translateX(100px) scale(0.5);
    }

    body:hover .box:nth-of-type(2) {
        transform: scale(0.5) translateX(100px);
    }
  </style>
</head>

<body>
  <div class="box">111</div>
  <div class="box">222</div>
</body>

</html>